﻿-- =============================================
-- Author:		Andreas Könighofer (IT-eXperience)
-- Create date: 14.01.2009
-- Description:	Updates existing Location.
-- =============================================
CREATE PROCEDURE [dbo].[UpdateLocation]
	-- Add the parameters for the stored procedure here
	@LocationID SMALLINT
	, @LocationName NVARCHAR(50) = NULL
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    UPDATE [BigDays2009].[dbo].[Location]
	SET [LocationName] = ISNULL(@LocationName, LocationName)
	WHERE LocationID = @LocationID
END

---- end script UpdateLocation stored procedure ----

---- start script UpdateMachineType stored procedure ----

